import {useParams} from "react-router-dom";

export default function Album(props){
    let params = useParams();
    const {albumId}=params;
    if(albumId==='666'){
        throw new Error("I crash with albumId: "+albumId)
    }
    return <div>this is album page {<span>albumId is : {albumId}</span>}</div>
}